﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="loading">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
	<meta name="keywords" content="新创社" />
	<meta name="description" content="新创社会创新">
	<meta name="author" content="新创社" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=no" name="format-detection">
	<title>新创社会创新</title>
    <script type="text/javascript" src="../js/jquery.min.js"></script> 
    <script type="text/javascript" src="js/jquery.cityselect.js"></script>
    <script src="js/updateme.js"></script> 
	<link rel="stylesheet" type="text/css" href="../css/indexstyle.css" />
    <link rel="stylesheet" type="text/css" href="css/updateme.css" />
	<link rel="apple-touch-icon-precomposed" href="../img/default/defaultshare.jpg">
	<link href="../img/icons/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <script type="text/javascript">
		$(function(){
			$("#city_1").citySelect({
				nodata:"none",
				required:false
			}); 
			$("#city_2").citySelect({
				nodata:"none",
				required:false
			}); 
		});
    </script>

</head>
<body>
		<?php
			session_start();
			if(empty($_SESSION["mb"]) && empty($_SESSION["pwd"]))
				echo "<script>window.location.href='../login/login.html'</script>";	
				
			require_once("../connectMysql/connetMysql.class.php");
			$db=new connetMysql;
			$con=$db->getConnect();
			$getuserinfo_sql="SELECT PetName,OpenContact,UserDescri,EduExper,Skill,WorkExper FROM user WHERE UserPhone=".$_SESSION['mb'];
			$result=mysqli_query($con,$getuserinfo_sql);
			$row = mysqli_fetch_assoc($result);
			
		?>
		<div class="head">
			<!-- Header -->
			<div id="header">
				<a id="menu" href="#menu"></a>
				<span id="Logo" class="svg">
					<img src="../img/icons/logo.png" />
				</span>
				 <a class="backBtn" onclick='javascript:history.go(-1)'>返回</a>
			</div>
            <!--End Header-->
			<div class="subHeader"><i class="i-home i-small"></i>请完整填写个人信息</div>
			
		</div>
        <div class="main"  id="wrapper">
        	
        	<form id="reform" method="post" action="update.php">  
            	<h3>基础信息</h3>
             	<table class="activity-list hot">
                	<tr>
                    	<td>昵称</td>
                        <td>
						<input type="text" id="petname" class="require" name="petname" placeholder="填写昵称" 
						<?php if(!empty($row['PetName'])) echo "value=\"".$row['PetName']."\"" ?>></td> 
                    </tr>
                    <tr>
                    	<td>性别</td>
                        <td>
                         <select id="usersex" name="usersex" class="require w6">
                                <option value="0">选择性别</option>
                                <option value="1">男</option>
                                <option value="2">女</option>
                            </select>
                         </td>
                    <tr>
                    	<td>联系方式</td>
                        <td><input type="text" id="opencontact" class="require" name="opencontact" placeholder="填写联系方式"
                        <?php if(!empty($row['OpenContact'])) echo "value=\"".$row['OpenContact']."\"" ?>></td> 
                    </tr>
                	<tr>
                    	<td>个人描述</td>
                        <td><input type="text" id="title" class="require" name="title" placeholder="一句话描述自己"
                        <?php if(!empty($row['UserDescri'])) echo "value=\"".$row['UserDescri']."\"" ?>></td> 
                    </tr>
                    
                    <tr>
                    	<td>教育描述</td>
                        <td><input type="text" id="eduexper" class="require" name="eduexper" placeholder="一句话描述自己教育经历"
                        <?php if(!empty($row['EduExper'])) echo "value=\"".$row['EduExper']."\"" ?>></td> 
                    </tr>
                    
                     <tr>
                    	<td>擅长方向</td>
                        <td>
                         <select id="usertype" name="usertype" class="require w6">
                                <option value="0">选择类型</option>
                                <option value="1">技术</option>
                                <option value="2">设计</option>
                                <option value="3">产品</option>
                                <option value="4">运营</option>
                                <option value="5">打杂</option>
                                <option value="6">投资</option>
                            </select>
                         </td>
                         <tr>
                    	<td>擅长领域</td>
                        <td><input type="text" id="skill" class="require" name="skill" placeholder="自己擅长的领域"
                        <?php if(!empty($row['Skill'])) echo "value=\"".$row['Skill']."\"" ?>></td> 
                    </tr>
                   </tr>
                    
                    
                    
                    <tr>
                    	<td>出生年代</td>
                        <td>
                        <select id="userbirth" name="userbirth" class="require w6">
                                <option value="0">选择年龄</option>
                                <option value="00后">00后</option>
                                <option value="95后">95后</option>
                                <option value="90后">90后</option>
                                <option value="85后">85后</option>
                                <option value="80后">80后</option>
                                <option value="75后">75后</option>
                                <option value="70后">70后</option>
                                <option value="65后">65后</option>
                                <option value="60后">60后</option>
                                <option value="55后">55后</option>
                                <option value="50后">50后</option>
                                
                            </select>
                       
						</td>
                        
                   </tr>           
                    <tr>
                    	<td>所在地区</td>
                        <td>
                           <div id="city_1">
                               <select id="livprov" name="livprov" class="prov require w6"></select> 
                               <select id="livcity" name="livcity" class="city require w6" disabled="disabled"></select>
                           </div>

                        
                        </td>
                        
                   </tr>
                   
                   <tr>
                    	<td>家乡地区</td>
                        <td>
                           <div id="city_2">
                               <select id="homeprov" name="homeprov" class="prov require w6"></select> 
                               <select id="homecity" name="homecity" class="city require w6" disabled="disabled"></select>
                           </div>

                        
                        </td>
                        
                   </tr>
                   
                   
                </table>
                <div class="other clearfix">
                    <p>工作经历</p>
                    <textarea rows="5" name="intro" id="intro" class="mt require" placeholder="工作经历介绍">
					<?php if(!empty($row['WorkExper'])) echo $row['WorkExper']; $db->clossConnet();?></textarea>
                    <button type="button" class="cks-btn mt fr" id="submit-btn">立即更新</button>
                </div>
           </form>
        </div>

		

</body>

</html>